set(MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_NAME}")
set(MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}")
set(MACOSX_BUNDLE_COPYRIGHT "${COPYRIGHT}")
set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.${PROJECT_NAME}.example")
set(MACOSX_BUNDLE_ICON_FILE "app_icon.icns")
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
set(APP_ICON_FILE "${CMAKE_CURRENT_LIST_DIR}/${MACOSX_BUNDLE_ICON_FILE}")

set_source_files_properties(${APP_ICON_FILE} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
list(APPEND SHARED_SOURCES "${APP_ICON_FILE}")
